package com.ftg.mall.base.util.desensitization;

/**
 * 身份证脱敏
 * @author wangty
 * @date 2022/11/14
 */
public class IdCardDesensitization extends AbstractDesensitization {

    @Override
    public String serialize(String value) {
        return value.replaceAll("(?<=\\w{3})\\w(?=\\w{4})","*");
    }

}
